Replace missing exponent.
authorJay Belanger <jay.p.belanger@gmail.com>
Mon, 25 Aug 2008 20:53:21 +0000 (20:53 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Mon, 25 Aug 2008 20:53:21 +0000 (20:53 +0000)
lisp/calc/calc-units.el

index f648a37cb7f878639918acee4ca99c466a61b2f8..e3da2ebd997159063e86f1ff2650e111a14261cc 100644 (file)
@@ -1138,7 +1138,9 @@ Entries are (SYMBOL EXPR DOC-STRING TEMP-TYPE BASE-UNITS).")
       (and un ud
           (if (and (equal (nth 4 un) (nth 4 ud))
                    (eq pow1 pow2))
-              (math-to-standard-units (list '/ n d) nil)
+               (if (eq pow1 1)
+                   (math-to-standard-units (list '/ n d) nil)
+                 (list '^ (math-to-standard-units (list '/ n d) nil) pow1))
             (let (ud1)
               (setq un (nth 4 un)
                     ud (nth 4 ud))